/*
 * @Author: your name
 * @Date: 2021-07-24 11:01:54
 * @LastEditTime: 2021-07-24 17:33:54
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \fd_-web\src\custom-component\index.js
 */
import Vue from "vue";

const components = [
    'Picture',
    'VText',
    'VButton',
    'Group',
    'RectShape',
    'Histogram1',
    'Histogram2',
    'Annular',
    'Annular2',
    'MuchAnnular',
    'MuchAnnular2',
    'Brokenline1',
    'Brokenline2',
    'Brokenline3',
    'Brokenline4',
    'Brokenline5',
    'Brokenline6',
    'Stackedline1',
    'Stackedline2',
    'Radar1',
    'Radar2',
    'panel1',
    'panel2',
    'Diagram1',
    'Diagram2',
    'Stackinggraph1',
    'Stackinggraph2',
    'BasicBarChart1',
    'BasicBarChart2',
    'StackedBarChart1',
    'StackedBarChart2',
    'PolarBarChart1',
    'Areamap1',
    'Areamap2',
    'Areamap3',
    'Areamap4',
    'Areamap5',
    'StackingArea1',
    'StackingArea2',
    'StackingArea3',
    'StackedHistogram1',
    'StackedHistogram2',
    'PercentageHistogram',
    'PercentageBar',
    'Piechart',
    'Piechart2',
    'Diagram3',
    'Diagram4',
    'Diagram5',
    'Diagram6',
    'Stackinggraph3',
    'Stackinggraph4',
]

// 通用组件
const GeneralComponents = [
    "Time1Model",
    "Time2Model",
    "Time3Model",
    "Colck1Model",
    "tree1Model",
    "table1Model",
];
// 遍历组件挂载到vue
GeneralComponents.forEach((key) => {
    Vue.component(key, () =>
        import(`@/custom-component/Vcomponents/General/${key}`)
    );
});

components.forEach(key => {
    Vue.component(key, () => import(`@/custom-component/Vcomponents/${key}`))
})
